//    Copyright (C) Kherty.  All rights reserved.
using System;
using OpenLS.Core.Serialization;

namespace OpenLS.Spreadsheet.Data
{
    class StringValue: IOfficeXmlSerializable
    {
        private string _v;

        public void ReadXml(ReadContext context)
        {
            using (var c = context.Read("s"))
            {
                _v = c.GetString("v");
            }

        }

        public void WriteXml(WriteContext context)
        {
            using (var c = context.Write("s"))
            {
                c.SetString("v", _v);
            }
        }
    }
}